import { CreateUserDto } from 'src/users/dto/create-user.dto'
import { IsOptional, MaxLength, MinLength } from 'class-validator'

export class RegisterDto extends CreateUserDto {
  @MinLength(2, { message: '昵称长度最小为 2 位' })
  @MaxLength(10, { message: '昵称长度最大为 10 位' })
  @IsOptional()
  nickname?: string
}
